(math-use-emacs-fn): Make sure that the lisp number is in decimal.
authorJay Belanger <jay.p.belanger@gmail.com>
Sat, 21 Feb 2009 19:18:20 +0000 (19:18 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Sat, 21 Feb 2009 19:18:20 +0000 (19:18 +0000)
lisp/calc/calc-math.el

index 64c5465da3ce2fdc730d7c1e322ca8cb911c6e38..c8e8cc1f052ea31a81ab67c4c0264c35c59af2ab 100644 (file)
@@ -105,7 +105,9 @@ If this can't be done, return NIL."
               (math-read-number
                (number-to-string
                 (funcall fn 
-                         (string-to-number (math-format-number (math-float x))))))
+                        (string-to-number 
+                         (let ((calc-number-radix 10))
+                           (math-format-number (math-float x)))))))
             (error nil))))))
 
 (defun calc-sqrt (arg)